package AbstractFactory;

/**
 * @author ServivE
 * @version 0.1
 * @className BenzFactory
 * @description
 * @date 2024/10/15 10:17
 * @since jdk17
 */
public class BenzFactory implements AbstractCarFactory{
    @Override
    public CClassCar build_C_ClassCar() {
        System.out.println("这是奔驰车厂生产的C级车");
        return new BenzC();
    }

    @Override
    public BClassCar build_B_ClassCar() {
        System.out.println("这是奔驰车厂生产的B级车");
        return new BenzB();
    }
}
